package com.example.demo.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.example.demo.entity.User;

@Mapper
public interface UserMapper {

  Integer add(@Param("user") User user);

  Integer update(@Param("user") User user);

  Integer delete(@Param("id") int id);

  User findByName(@Param("name") String name);

  User[] find(@Param("name") String name);

  User findOne(@Param("id") int id);
}
